package com.shujia.common_util.two;

import org.junit.Test;

public class SystemDemo {

    @Override
    public int hashCode() {
        return 111;
    }

    @Test
    public void test2() {

        SystemDemo demo = new SystemDemo();
        System.out.println(demo.hashCode());

        System.out.println(demo.toString());

        // System.gc();
        System.out.println(System.getProperty("java.version"));
        System.out.println(System.getProperty("java.home"));
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("user.name"));
        System.out.println(System.getProperty("user.home"));
        // 当前项目下的模块目录
        System.out.println(System.getProperty("user.dir"));
    }

    @Test
    public void test1() {
        long time = System.currentTimeMillis();
        System.out.println(time);


        // return, 结束方法
        // exit 直接结束jvm进程
        System.exit(0);

        System.out.println(111);


    }
}
